package com.sunny.ynhz.bean;

import io.realm.RealmObject;

/**
 * Created by luao on 2017/7/13.
 */

public class LocationBean extends RealmObject {
    public LocationBean() {

    }

    public LocationBean(String time, double lttd, double lgtd, String patrolId, String userId) {
        this.time = time;
        this.lttd = lttd;
        this.lgtd = lgtd;
        this.patrolId = patrolId;
        this.userId = userId;
    }


    public double getLttd() {
        return lttd;
    }

    public void setLttd(double lttd) {
        this.lttd = lttd;
    }

    public double getLgtd() {
        return lgtd;
    }

    public void setLgtd(double lgtd) {
        this.lgtd = lgtd;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public float getDistance() {
        return distance;
    }

    public void setDistance(float distance) {
        this.distance = distance;
    }

    /**
     * 纬度
     */
    private double lttd;
    /**
     * 经度
     */
    private double lgtd;
    /**
     * 定位时间
     */
    private String time;

    /**
     * 地理位置
     */
    private String addr;

    /**
     * 相对于起始点的巡河距离
     */
    private float distance;


    /**
     * 巡河id
     */
    private String patrolId;

    public String getPatrolId() {
        return patrolId;
    }

    public void setPatrolId(String patrolId) {
        this.patrolId = patrolId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 用户id
     */
    private String userId;

    @Override
    public String toString() {
        return "LocationBean{" +
                "lttd=" + lttd +
                ", lgtd=" + lgtd +
                ", time='" + time + '\'' +
                ", addr='" + addr + '\'' +
                ", distance=" + distance +
                ", patrolId='" + patrolId + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
